package com.frontop.system.modules.app.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.frontop.common.annotation.AnonymousAccess;
import com.frontop.common.util.ResultJsonUtil;
import com.frontop.system.modules.app.model.AppRecommend;
import com.frontop.system.modules.app.service.AppRecommendService;
import com.frontop.system.modules.project.model.SysProject;
import com.frontop.system.modules.project.vo.SysProjectVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * app作品轮播图 前端控制器
 * </p>
 *
 * @author YangJia
 * @since 2022-06-07
 */
@RestController
@RequestMapping("/app-recommend")
public class AppRecommendController {

    @Autowired
    AppRecommendService appRecommendService;

    @ApiOperation(value = "查询所有轮播")
    @PostMapping("/list")
    public ResultJsonUtil<Object> list() {
        List<AppRecommend> list = appRecommendService.list();
        return new ResultJsonUtil().success(list);
    }

}
